//
//  UIImageView+ifanr.swift
//  ifanr
//
//  Created by 😱😱 on 16/9/15.
//  Copyright © 2016年 😱😱. All rights reserved.
//

import UIKit
import Kingfisher

extension UIImageView {
    /**
     异步请求网络图片
     */
    func if_setImage(imageURL: NSURL!) {
        self.kf_setImageWithURL(imageURL, placeholderImage: UIImage(named: "place_holder_image"), optionsInfo: nil, progressBlock: nil)
    }
    
    func if_setAvatarImage(url: NSURL!) {
        self.kf_setImageWithURL(url, placeholderImage: UIImage(named: "place_holder_avatar"), optionsInfo: nil, progressBlock: nil)
    }
}
